<?php
//$host = '192.168.1.233';
//$host = '192.168.1.106';
//$host = '192.168.1.153';
return array
(
    'UPLOAD'=>array
    (
        'REMOTE_KEY'          => '#shop@$123782#',
    ),

    /* memcache 配置 */
    //'MEMCACHE_HOST'            =>  $host,
    //'MEMCACHE_PORT'            =>  '11211',
    //'DATA_CACHE_TIMEOUT' => 0,

    /* session共享  */
    //'SESSION_OPTIONS' => array(
    //    'domain' => '.'.DOMAIN_SUFFIX,
    //    'path' => $host.':11211',
    //    'expire'=>10800,
    //    'cache_expire'=>10800,
    //    'use_cookies' => 1,
    //    'type' => 'MemcacheSession',
    //),
    'SESSION_TIMEOUT' => 10800,
    'VAR_SESSION_ID'=>'PHPSESSID',

    'SESSION_AUTO_START'=>true,
    'SESSION_PREFIX'=>'',

    /*'MEMCACHE'=>array
    (
        'HOST' => $host,
        'PORT' => '11211',
    ),*/

    /*模板替换配置*/
    'TMPL_PARSE_STRING'=>array(
        '__PUBLIC__'=>HTTP_SCHEME.'://g.'.DOMAIN_SUFFIX,//公共Public目录
        '__HOME__'=>HTTP_SCHEME.'://www.'.DOMAIN_SUFFIX, //主站点
        '__IMG__'=>HTTP_SCHEME.'://img.'.DOMAIN_SUFFIX, //图片
        '__ADMIN__'=>HTTP_SCHEME.'://y.'.DOMAIN_SUFFIX,//后台站点
        '__FILE__'=>HTTP_SCHEME.'://u.'.DOMAIN_SUFFIX,//文件上传服务器站点
    ),
    /*图片上传动作配置*/
    'IMG_MANAGE_ACTION'=>array(
        'upload',
        'upload_editor',
        'upload_editor_file',
        'upload_common',
        'upload_common_face',
        'upload_face',
        'delete',
	    'regenerate',
        'create_qrcode',
        'uploadRemote',
        'move',
        'moveByMuiti',
        'uploadRedirect',
        'urlUpload',
        'reasonUpload'
    ),
    'ATTACH_DIR'        =>  '/Data/',//上传目录配置
    'ALLOW_HOST'=>array('www.'.DOMAIN_SUFFIX,'g.'.DOMAIN_SUFFIX,'img.'.DOMAIN_SUFFIX),
);
